package com.shierke.Ume.ui.fragment.me

import android.content.Context
import android.os.Bundle
import androidx.recyclerview.widget.GridLayoutManager
import com.shierke.Ume.R
import com.shierke.Ume.base.BaseActivity
import com.shierke.Ume.ui.activity.me.DeblockingVistorsDialogActivity
import com.shierke.Ume.ui.adapter.me.LikeMeAdapter
import com.shierke.Ume.ui.view.SpaceItemDecoration
import com.shierke.Ume.util.click
import com.shierke.Ume.util.startActivity
import kotlinx.android.synthetic.main.activity_like_me.*

/**
 * Create by Ybx
 * on 2020-10-20
 * Desribe:
 */
class LikeActivity : BaseActivity() {

    companion object {
        fun startActivity(context: Context) {
            context.startActivity<LikeActivity>()
        }
    }


    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_like_me)

        setActivityTitleText(getString(R.string.fragment_me_activity_title_like))


        likeList.layoutManager = GridLayoutManager(this, 2)

        val decoration = SpaceItemDecoration(35)

        likeList.addItemDecoration(decoration)

        val likeMeAdapter = LikeMeAdapter()

        likeList.adapter = likeMeAdapter



        unlock.click {
            DeblockingVistorsDialogActivity.startActivity(this)
        }

    }
}